/*
 * Filename:    WarnResultDTO.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年11月12日
 */
package com.paic.mhis.hcpms.warning.dto;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.paic.mhis.common.base.dto.BaseDTO;

public class WarnResultDTO extends BaseDTO {

	private static final long serialVersionUID = 1L;
	private String warnNo;// 预警任务号
	private String opinion;// 责任人意见
	private String traceStartDate;// 后续跟踪起期
	private String traceEndDate;// 后续跟踪终期
	private String dateResult;
	private String opinionName;
	private Date startDate;
	private Date endDate;
	private String opinionDesc;
	// 合计金额
	private String sumAmount;
	// 综合得分
	private String point;
	private String agent;
	private String agentName;
	private String agentDate;

	public String getWarnNo() {
		return warnNo;
	}

	public void setWarnNo(String warnNo) {
		this.warnNo = warnNo;
	}

	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	public String getTraceStartDate() {
		return traceStartDate;
	}

	public void setTraceStartDate(String traceStartDate) {
		this.traceStartDate = traceStartDate;
	}

	public String getTraceEndDate() {
		return traceEndDate;
	}

	public void setTraceEndDate(String traceEndDate) {
		this.traceEndDate = traceEndDate;
	}

	public String getOpinionName() {
		return opinionName;
	}

	public void setOpinionName(String opinionName) {
		this.opinionName = opinionName;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getDateResult() {
		if (StringUtils.isNotBlank(this.getTraceStartDate()) && StringUtils.isNotBlank(this.getTraceEndDate())) {
			this.dateResult = this.getTraceStartDate().replaceAll("-", "") + "-"
					+ this.getTraceEndDate().replaceAll("-", "");
		}
		return dateResult;
	}

	public void setDateResult(String dateResult) {
		this.dateResult = dateResult;
	}

	public String getOpinionDesc() {
		return opinionDesc;
	}

	public void setOpinionDesc(String opinionDesc) {
		this.opinionDesc = opinionDesc;
	}

	public String getSumAmount() {
		return sumAmount;
	}

	public void setSumAmount(String sumAmount) {
		this.sumAmount = sumAmount;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getAgentDate() {
		return agentDate;
	}

	public void setAgentDate(String agentDate) {
		this.agentDate = agentDate;
	}

}
